package com.study.opensource.spring.enable.annotation;

import com.study.opensource.spring.enable.config.Server;
import com.study.opensource.spring.enable.selector.ServerImportBeanDefinitionRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author 许棒棒
 * @className com.study.study.opensource.spring.enable.annotation.EnableServer
 * @description TODO 注解描述
 * @date 2021/04/17 22:15:15
 */
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(ServerImportBeanDefinitionRegistrar.class)
public @interface EnableServer {

    Server.Type type();

}
